package xyz.dfm.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author: Dsi
 * @date: 2022/2/25 15:14
 * @description:
 */
@TableName("role")
@Data
@Accessors(chain = true)
public class Role {
    @TableId(type = IdType.AUTO)
    private Integer roleId;
    private Integer userId;
    private String roleName;
    //private String permissionName;
    //存储角色对应的多权限
    private List<Permission> children;
}

